Skip to content

new fancy status bars#2309

Open
Akar1881 wants to merge 1 commit intoSkyblockerMod:mainfrom
Akar1881:feature/betterfancystatusbars
Open

new fancy status bars#2309
Akar1881 wants to merge 1 commit intoSkyblockerMod:mainfrom
Akar1881:feature/betterfancystatusbars

Conversation

@Akar1881
Copy link
Copy Markdown

@Akar1881 Akar1881 commented Apr 9, 2026

FancyStatusBars: Bug fixes, UX improvements, and hotbar-relative default layout

Hey everyone! This PR bundles a bunch of improvements I made to the FancyStatusBars feature that I've been working through over the past while. There's bug fixes, quality-of-life tweaks, and a new system that makes the default bar layout work correctly at any GUI scale.


Bug fixes

  • Fixed when you click a bar it just vanishs
  • Fixed when you hide a bar you cant show it again

UX / editor improvements

  • Added a nudge overlay timer: the X/Y position overlay now displays not just during sub-element dragging, but also for 80 frames after using Shift+Arrow keys to nudge an element. This gives you visual feedback that the nudge registered without the overlay staying on screen permanently.

Hotbar-relative default layout (new)

The biggest addition here is a new HOTBAR_RELATIVE anchor mode for bars. Previously, the default layout was stored as screen-fraction positions (x, y as 0-1 values). This meant the bars would drift to different positions depending on your GUI scale — what looked perfect at scale 2 would be completely off at scale 1 or 3.

Now, default bars store their position as GUI-pixel offsets from the hotbar's top-center instead. Since the Minecraft hotbar is always 182x22 GUI pixels regardless of scale, this makes the default layout completely scale-independent.

How it works:

  • Each default bar has hotbarRelOffX, hotbarRelOffY, and hotbarPixelWidth fields
  • updatePositions() computes the actual screen pixel position each frame from these offsets and the current screen size
  • The moment you drag a bar in the config screen it detaches from the hotbar anchor and becomes a free-floating bar (same behaviour as before), so you still have full control
  • "Reset to defaults" puts bars back into hotbar-relative mode

Default layout: three stat bars (Health / Intelligence / Defense) tiled across the hotbar width with 1px gaps, XP bar spanning the full hotbar width 1px above the hotbar, and Speed / Air bars flanking just outside the hotbar's left and right edges below it.


For anyone who wants a walkthrough of the config screen and how to customize your bars, here's a video tutorial:
https://youtu.be/DED4CUVz_Og?si=5CoVrLA3MHZgTL4P


Let me know if anything looks off or needs adjusting. Happy to revise!

@LifeIsAParadox LifeIsAParadox added the reviews needed This PR needs reviews label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviews needed This PR needs reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants